package com.java;

import com.java.Impl.ProxyImage;
import com.java.it.Image;

/**
 * Hello world!
 *
 */
public class ProxyPatternDemo
{
    public static void main( String[] args )
    {
        //图像讲从磁盘加载
        Image image=new ProxyImage("test_10.jpg");
        image.display();
        System.out.println("");
        //图像不需要从磁盘加载
        image.display();
    }
}
